import request from '@/utils/request'

export const getUserInfo = () => {
  return request.get('/user/info')
}

export const getToken = (params: { username: string }) => {
  return request.get('/user/token', { params })
}

export const getUserList = (data: { username?: string; userType: number; nickname?: string }) => {
  return request.post('/user/list', { data })
}
